using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using Ent.Voice.Nomination;
using System.Drawing;
using Ent.Voice.Show;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Security.Permissions;

namespace Ent.Web.WebControl
{
    [ParseChildren(true)]
    [AspNetHostingPermission(SecurityAction.Demand,
       Level = AspNetHostingPermissionLevel.Minimal)]

    public class DashEntrySet : System.Web.UI.UserControl
    {
        #region Properties
        private BorderStyle _borderStyle = BorderStyle.None;
        public BorderStyle BorderStyle
        {
            get { return _borderStyle; }
            set { _borderStyle = value; }
        }
        private string _borderColor = "#000000";
        public string BorderColor
        {
            get { return _borderColor; }
            set { _borderColor = value; }
        }
        private string _borderWidth = "0px";
        public string BorderWidth
        {
            get { return _borderWidth; }
            set { _borderWidth = value; }
        }
        private Unit _height = Unit.Percentage(100);
        public Unit Height
        {
            get { return _height; }
            set { _height = value; }
        }
        private int maxOnScreen = 12;
        public int MaxOnScreen
        {
            get { return maxOnScreen; }
            set { maxOnScreen = value; }
        }
        private int maxInRow = 3;
        public int MaxInRow
        {
            get { return maxInRow; }
            set { maxInRow = value; }
        }
        private Unit _width = Unit.Percentage(100);
        public Unit Width
        {
            get { return _width; }
            set { _width = value; }
        }
        private FontUnit _detailsFontSize = FontUnit.Small;
        public FontUnit DetailsFontSize
        {
            get { return _detailsFontSize; }
            set { _detailsFontSize = value; }
        }
        private int _nameMaxChar = 20;
        public int NameMaxChar
        {
            get { return _nameMaxChar; }
            set { _nameMaxChar = value; }
        }
        private int _detailsMaxChar = 50;
        public int DetailsMaxChar
        {
            get { return _detailsMaxChar; }
            set { _detailsMaxChar = value; }
        }
        private Unit _detailsWidth = Unit.Pixel(120);
        public Unit DetailsWidth
        {
            get { return _detailsWidth; }
            set { _detailsWidth = value; }
        }
        private Event _event = null;
        public Event Event
        {
            get { return _event; }
            set { _event = value; }
        }
        private bool _showNavigation = true;
        public bool ShowNavigationControls
        {
            get { return _showNavigation; }
            set { _showNavigation = value; }
        }
        private bool _showDetails = true;
        public bool ShowDetails
        {
            get { return _showDetails; }
            set { _showDetails = value; }
        }
        private bool _showScroll = true;
        public bool ShowScroll
        {
            get { return _showScroll; }
            set { _showScroll = value; }
        }
        private DashEntry _entryTemplate = new DashEntry();
        [PersistenceMode(PersistenceMode.InnerProperty), TemplateContainer(typeof(TemplateControl))]
        public DashEntry EntryTemplate
        {
            get { return _entryTemplate; }
            set { _entryTemplate = value; }
        }
        #endregion
    }
}
